var JS_VERSION = '1.2.0', HTML_VERSION = '1.0.0', CSS_VERSION = '1.0.0', IMG_VERSION = '1.0.0';

function loadJs(jsSrc) {
	document.write('<script src="../../libs/' + jsSrc + '.js?v=' + JS_VERSION + '" charset="utf-8" type="text/javascript"><\/script>');
}

function loadCommonJs() {
	loadJs("common/router");
}

/*对象方法扩展*/
//判断IE
function isIE() {
    if (!!window.ActiveXObject || "ActiveXObject" in window) { 
    	return true;  
	} else {
		return false; 
	}
}
if(isIE()){
	String.prototype.startsWith = function(str) {
		var reg = new RegExp("^" + str);
		return reg.test(this);
	}

	String.prototype.endsWith = function(str) {
		var reg = new RegExp(str + "$");
		return reg.test(this);
	}
}


